package com.base.service.impl;

import com.base.mapper.voipmapper.FilmAdMapper;
import com.base.po.voip.FilmAd;
import com.base.service.FilmAdService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("filmAdService")
public class FilmAdServiceImpl implements FilmAdService {

    @Autowired
    private FilmAdMapper filmAdMapper;

    @Override
    public int deleteByPrimaryKey(String id) {
        return filmAdMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(FilmAd record) {
        return filmAdMapper.insert(record);
    }

    @Override
    public int insertSelective(FilmAd record) {
        return filmAdMapper.insertSelective(record);
    }

    @Override
    public FilmAd selectByPrimaryKey(String id) {
        return filmAdMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(FilmAd record) {
        return filmAdMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(FilmAd record) {
        return filmAdMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<FilmAd> selectByAll(String parentid, Integer type) {
        return filmAdMapper.selectByAll(parentid, type);
    }
}
